﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data
{
    /// <summary>
    /// Datarow.
    /// </summary>
    public class DataRow : System.Data.DataRow
    {
        #region Constructor
        protected internal DataRow(System.Data.DataRowBuilder rb)
            : base(rb)
        {
        }
        #endregion

        /// <summary>
        /// Copy data into data object.
        /// </summary>
        /// <param name="dataObject">Data object.</param>
        /// <returns>Count of copyed.</returns>
        public virtual int CopyTo(object dataObject)
        {
            return RaisingStudio.Data.DataTable.CopyTo(this, dataObject);
        }

        /// <summary>
        /// Copy from data object.
        /// </summary>
        /// <param name="dataObject">Data object.</param>
        /// <returns>Count of copyed.</returns>
        public virtual int CopyFrom(object dataObject)
        {
            return RaisingStudio.Data.DataTable.CopyFrom(this, dataObject);
        }
    }
}
